package com.twotiger.and.activity.base;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

public abstract class AbastractListItem {

    public AbstractListItemLayout itemLayout = new BaseListItemLayout();
    /**下一个板块*/
    public boolean nextBlock = false;
    /**点击事件*/
    public OnClick onclick;

    public void onClick() {
        if (onclick != null)
            onclick.onClick();
    }

    public interface OnClick {
        public void onClick();
    }

    public View getView(Context context, int position, View convertView, ViewGroup parent) {
        return itemLayout.inflate(context, position, convertView, this, parent);
    }
}
